<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0" />
    <title>01-多列布局</title>
    <style>
      .box {
        /* 指定列数 */
        column-count: 5;
        /* 指定每列宽度 */
        column-width: 150px;
        /* 指定每列间距 */
        column-gap: 50px;
        /* 指定每一列边框 */
        column-rule: 2px solid red;
      }
      h1 {
        /* 横跨多列，默认为none */
        column-span: all;
        text-align: center;
      }
      .item {
        background-color: aqua;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <h1>我是标题</h1>
      <div class="item">1</div>
      <div class="item">2</div>
      <div class="item">3</div>
      <div class="item">4</div>
      <div class="item">5</div>
      <div class="item">6</div>
      <div class="item">7</div>
      <div class="item">8</div>
      <div class="item">9</div>
      <div class="item">10</div>
    </div>
  </body>
</html>
